<script setup>

import {inject} from "vue";

const count = inject('count')
//2：接收方法修改count
const changeCount = inject('changeCount')

console.log(count)

setTimeout(()=>{
  changeCount()
},2000)
</script>

<template>
  <div>
    07_composition_api_watch_provide_inject_child.vue
    father:{{count}}
  </div>
</template>

<style scoped>

</style>